home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 27 code / Internet_Config_Assistant.sit / Internet Config Assistant / toolkit / TBitmap.h < prev    next >
MacBinary  |  1996-06-30  |  1.8 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Sun Jun 30 13:50:36 1996, modified Sun Jun 30 13:50:36 1996, creator 'CWIE', type ASCII, 1114 bytes "TBitmap.h" , at 0x4da 456 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 54 42 69 74 6d 61 | 70 2e 68 00 00 00 00 00 |..TBitma|p.h.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 04 5a 00 | 00 01 c8 ad fc 6e ec ad |......Z.|.....n..|
|00000060| fc 6e ec 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.n......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 01 c6 00 00 |........|........|
|00000080| 2f 2a 0d 09 46 69 6c 65 | 3a 09 09 54 42 69 74 6d |/*..File|:..TBitm|
|00000090| 61 70 2e 68 0d 0d 09 43 | 6f 6e 74 61 69 6e 73 3a |ap.h...C|ontains:|
|000000a0| 09 41 20 73 69 6d 70 6c | 65 20 62 69 74 6d 61 70 |.A simpl|e bitmap|
|000000b0| 20 63 6c 61 73 73 0d 0d | 09 57 72 69 74 74 65 6e | class..|.Written|
|000000c0| 20 62 79 3a 09 41 72 6e | 6f 20 47 6f 75 72 64 6f | by:.Arn|o Gourdo|
|000000d0| 6c 0d 0d 09 43 6f 70 79 | 72 69 67 68 74 3a 09 a9 |l...Copy|right:..|
|000000e0| 20 31 39 39 36 20 62 79 | 20 41 70 70 6c 65 20 43 | 1996 by| Apple C|
|000000f0| 6f 6d 70 75 74 65 72 2c | 20 49 6e 63 2e 2c 20 61 |omputer,| Inc., a|
|00000100| 6c 6c 20 72 69 67 68 74 | 73 20 72 65 73 65 72 76 |ll right|s reserv|
|00000110| 65 64 2e 0d 0d 2a 2f 0d | 0d 23 70 72 61 67 6d 61 |ed...*/.|.#pragma|
|00000120| 20 6f 6e 63 65 0d 0d 23 | 69 66 6e 64 65 66 20 5f | once..#|ifndef _|
|00000130| 5f 54 42 49 54 4d 41 50 | 5f 5f 0d 23 64 65 66 69 |_TBITMAP|__.#defi|
|00000140| 6e 65 20 5f 5f 54 42 49 | 54 4d 41 50 5f 5f 0d 0d |ne __TBI|TMAP__..|
|00000150| 23 69 6e 63 6c 75 64 65 | 20 22 61 73 73 65 72 74 |#include| "assert|
|00000160| 2e 68 22 0d 0d 23 69 6e | 63 6c 75 64 65 20 3c 51 |.h"..#in|clude <Q|
|00000170| 75 69 63 6b 64 72 61 77 | 2e 68 3e 0d 23 69 6e 63 |uickdraw|.h>.#inc|
|00000180| 6c 75 64 65 20 3c 51 44 | 4f 66 66 73 63 72 65 65 |lude <QD|Offscree|
|00000190| 6e 2e 68 3e 0d 0d 23 69 | 6e 63 6c 75 64 65 20 22 |n.h>..#i|nclude "|
|000001a0| 54 44 72 61 77 43 6f 6e | 74 65 78 74 2e 68 22 0d |TDrawCon|text.h".|
|000001b0| 0d 63 6c 61 73 73 20 54 | 42 69 74 6d 61 70 20 3a |.class T|Bitmap :|
|000001c0| 20 70 75 62 6c 69 63 20 | 54 44 72 61 77 43 6f 6e | public |TDrawCon|
|000001d0| 74 65 78 74 0d 7b 0d 70 | 75 62 6c 69 63 3a 0d 09 |text.{.p|ublic:..|
|000001e0| 54 42 69 74 6d 61 70 28 | 53 49 6e 74 31 36 20 70 |TBitmap(|SInt16 p|
|000001f0| 69 63 74 75 72 65 49 44 | 2c 20 55 49 6e 74 31 36 |ictureID|, UInt16|
|00000200| 20 64 65 70 74 68 29 3b | 0d 09 54 42 69 74 6d 61 | depth);|..TBitma|
|00000210| 70 28 43 52 65 63 74 20 | 62 6f 75 6e 64 73 2c 20 |p(CRect |bounds, |
|00000220| 55 49 6e 74 31 36 20 64 | 65 70 74 68 29 3b 0d 09 |UInt16 d|epth);..|
|00000230| 7e 54 42 69 74 6d 61 70 | 28 29 3b 0d 09 0d 09 76 |~TBitmap|();....v|
|00000240| 6f 69 64 20 53 65 74 42 | 69 74 73 28 63 6f 6e 73 |oid SetB|its(cons|
|00000250| 74 20 76 6f 69 64 2a 20 | 64 61 74 61 2c 20 55 49 |t void* |data, UI|
|00000260| 6e 74 33 32 20 6c 65 6e | 67 74 68 2c 20 55 49 6e |nt32 len|gth, UIn|
|00000270| 74 33 32 20 6f 66 66 73 | 65 74 2c 20 55 49 6e 74 |t32 offs|et, UInt|
|00000280| 31 36 20 64 65 70 74 68 | 29 3b 0d 09 76 6f 69 64 |16 depth|);..void|
|00000290| 2a 20 42 69 74 73 28 76 | 6f 69 64 29 20 63 6f 6e |* Bits(v|oid) con|
|000002a0| 73 74 3b 0d 09 6c 6f 6e | 67 20 42 69 74 73 4c 65 |st;..lon|g BitsLe|
|000002b0| 6e 67 74 68 28 76 6f 69 | 64 29 20 63 6f 6e 73 74 |ngth(voi|d) const|
|000002c0| 3b 0d 09 6c 6f 6e 67 20 | 42 79 74 65 73 50 65 72 |;..long |BytesPer|
|000002d0| 52 6f 77 28 76 6f 69 64 | 29 20 63 6f 6e 73 74 3b |Row(void|) const;|
|000002e0| 0d 09 55 49 6e 74 31 36 | 20 43 6f 6c 6f 72 53 70 |..UInt16| ColorSp|
|000002f0| 61 63 65 28 76 6f 69 64 | 29 20 63 6f 6e 73 74 3b |ace(void|) const;|
|00000300| 0d 09 76 69 72 74 75 61 | 6c 20 43 52 65 63 74 20 |..virtua|l CRect |
|00000310| 42 6f 75 6e 64 73 28 76 | 6f 69 64 29 20 63 6f 6e |Bounds(v|oid) con|
|00000320| 73 74 3b 0d 09 76 69 72 | 74 75 61 6c 20 42 6f 6f |st;..vir|tual Boo|
|00000330| 6c 65 61 6e 20 4c 6f 63 | 6b 28 76 6f 69 64 29 3b |lean Loc|k(void);|
|00000340| 0d 09 76 69 72 74 75 61 | 6c 20 76 6f 69 64 20 55 |..virtua|l void U|
|00000350| 6e 6c 6f 63 6b 28 76 6f | 69 64 29 3b 0d 09 69 6e |nlock(vo|id);..in|
|00000360| 6c 69 6e 65 20 50 69 78 | 4d 61 70 48 61 6e 64 6c |line Pix|MapHandl|
|00000370| 65 20 47 65 74 50 69 78 | 4d 61 70 48 61 6e 64 6c |e GetPix|MapHandl|
|00000380| 65 28 76 6f 69 64 29 20 | 63 6f 6e 73 74 3b 0d 09 |e(void) |const;..|
|00000390| 69 6e 6c 69 6e 65 20 47 | 57 6f 72 6c 64 50 74 72 |inline G|WorldPtr|
|000003a0| 20 47 65 74 47 57 6f 72 | 6c 64 50 74 72 28 76 6f | GetGWor|ldPtr(vo|
|000003b0| 69 64 29 20 63 6f 6e 73 | 74 3b 0d 70 72 69 76 61 |id) cons|t;.priva|
|000003c0| 74 65 3a 0d 09 55 49 6e | 74 31 36 20 66 52 6f 77 |te:..UIn|t16 fRow|
|000003d0| 42 79 74 65 73 3b 0d 09 | 47 44 48 61 6e 64 6c 65 |Bytes;..|GDHandle|
|000003e0| 20 66 53 61 76 65 47 44 | 65 76 69 63 65 3b 0d 09 | fSaveGD|evice;..|
|000003f0| 47 57 6f 72 6c 64 50 74 | 72 20 66 47 57 6f 72 6c |GWorldPt|r fGWorl|
|00000400| 64 3b 0d 09 43 52 65 63 | 74 20 66 42 6f 75 6e 64 |d;..CRec|t fBound|
|00000410| 73 3b 0d 09 55 49 6e 74 | 31 36 20 66 44 65 70 74 |s;..UInt|16 fDept|
|00000420| 68 3b 0d 7d 3b 0d 0d 69 | 6e 6c 69 6e 65 20 47 57 |h;.};..i|nline GW|
|00000430| 6f 72 6c 64 50 74 72 20 | 54 42 69 74 6d 61 70 3a |orldPtr |TBitmap:|
|00000440| 3a 47 65 74 47 57 6f 72 | 6c 64 50 74 72 28 76 6f |:GetGWor|ldPtr(vo|
|00000450| 69 64 29 20 63 6f 6e 73 | 74 0d 7b 0d 09 72 65 74 |id) cons|t.{..ret|
|00000460| 75 72 6e 20 66 47 57 6f | 72 6c 64 3b 0d 7d 0d 0d |urn fGWo|rld;.}..|
|00000470| 0d 69 6e 6c 69 6e 65 20 | 50 69 78 4d 61 70 48 61 |.inline |PixMapHa|
|00000480| 6e 64 6c 65 20 54 42 69 | 74 6d 61 70 3a 3a 47 65 |ndle TBi|tmap::Ge|
|00000490| 74 50 69 78 4d 61 70 48 | 61 6e 64 6c 65 28 76 6f |tPixMapH|andle(vo|
|000004a0| 69 64 29 20 63 6f 6e 73 | 74 0d 7b 0d 09 72 65 74 |id) cons|t.{..ret|
|000004b0| 75 72 6e 20 3a 3a 47 65 | 74 47 57 6f 72 6c 64 50 |urn ::Ge|tGWorldP|
|000004c0| 69 78 4d 61 70 28 66 47 | 57 6f 72 6c 64 29 3b 0d |ixMap(fG|World);.|
|000004d0| 7d 0d 0d 0d 23 65 6e 64 | 69 66 00 00 00 00 00 00 |}...#end|if......|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 52 |.......v|...v...R|
|00000510| 62 73 6f 6c 65 74 65 20 | 6d 61 72 6b 65 72 0d 0d |bsolete |marker..|
|00000520| 09 55 6e 6d 61 72 6b 20 | 4c 61 73 74 43 68 61 6e |.Unmark |LastChan|
|00000530| 09 54 42 69 74 6d 61 70 | 2e 68 02 00 00 00 54 45 |.TBitmap|.h....TE|
|00000540| 58 54 43 57 49 45 01 00 | 00 fe 00 ff 00 00 00 00 |XTCWIE..|........|
|00000550| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 fe 00 ff |..TEXTCW|IE......|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 a8 ef 48 bc 00 00 | 04 5a 00 00 01 c8 5b c2 |....H...|.Z....[.|
|00000580| 3a 5d 2b 3a 2a 29 2a 28 | 5b c2 3a 5d 2b 2e 28 5b |:]+:*)*(|[.:]+.([|
|00000590| 61 2d 7a 5d 2b 29 a8 32 | 29 a8 31 2f 0d 09 09 53 |a-z]+).2|).1/...S|
|000005a0| 65 74 20 53 68 6f 72 74 | 20 22 7b a8 31 7d 22 0d |et Short| "{.1}".|
|000005b0| 09 09 53 65 74 20 53 75 | 66 66 69 78 20 7b a8 32 |..Set Su|ffix {.2|
|000005c0| 7d 0d 09 45 6c 73 65 20 | 49 66 20 22 7b 57 69 6e |}..Else |If "{Win|
|000005d0| 64 6f 77 7d 22 20 3d 7e | 20 2f 3a 2a 28 5b c2 3a |dow}" =~| /:*([.:|
|000005e0| 5d 2b 3a 2a 29 2a 28 5b | c2 3a 5d 2b 29 a8 31 2f |]+:*)*([|.:]+).1/|
|000005f0| 0d 09 09 53 65 74 20 53 | 68 6f 72 74 20 22 7b a8 |...Set S|hort "{.|
|00000600| 00 00 00 1e 00 62 00 0e | 01 d3 02 6d 00 62 00 0e |.....b..|...m.b..|
|00000610| 01 d3 02 6d 00 00 04 f5 | 00 00 00 00 00 00 00 00 |...m....|........|
|00000620| 00 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |.....H..|Monaco..|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 6a 01 a0 |........|.....j..|
|00000650| 02 df 03 59 00 6a 01 a0 | 02 df 03 59 ad fc 28 9d |...Y.j..|...Y..(.|
|00000660| 00 00 00 94 00 00 00 94 | 00 00 00 00 01 00 00 00 |........|........|
|00000670| 00 04 00 01 00 01 00 00 | 01 00 00 00 01 76 00 00 |........|.....v..|
|00000680| 00 76 00 00 00 52 02 b0 | f3 38 30 7a 00 00 00 1c |.v...R..|.80z....|
|00000690| 00 52 00 01 4d 50 53 52 | 00 01 00 12 4d 57 42 42 |.R..MPSR|....MWBB|
|000006a0| 00 00 00 2a 03 f0 ff ff | 00 00 00 00 00 00 00 00 |...*....|........|
|000006b0| 03 ed ff ff 00 00 00 22 | 00 00 00 00 03 f0 ff ff |......."|........|
|000006c0| 00 00 00 6e 00 00 00 00 | 00 00 00 00 00 00 00 00 |...n....|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+